<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>${f.name}</title>
  </head>
  <body>
    <g:if test="${f.extension == 'pdf'}">
      <embed src="/telemedicine/downloadChangeFromPlugin/index/${f.id}" width="100%" height="100%" />
    </g:if>
    <g:if test="${f.extension == 'jpg' || f.extension == 'jpeg'}">
      <img src="/telemedicine/downloadChangeFromPlugin/index/${f.id}" width="100%" height="100%" />
    </g:if>
  </body>
</html>